import os
FileList = os.listdir("D:\\song\\")
for file in FileList:
    if os.path.getsize(file)//1048576 >= 10:
        print("ffmpeg2 -i \""+file+"\"")
print("")
for file in FileList:
    if os.path.getsize(file)//1048576 >= 10:
        if file[len(file)-4:] == "flac":
            print("ffmpeg2 -i \""+file[:len(file)-4]+"flac\" -b:a 128k -map_metadata 0 \""+file[:len(file)-5]+"(ver.mini).mp3\"")
            continue
        elif file[len(file)-4:] == ".mp4":
            print("ffmpeg2 -i \""+file[:len(file)-4]+".mp4\" -b:a 128k -vn -map_metadata 0 \""+file[:len(file)-4]+"(ver.mini).mp3\"")
            continue
        elif file[len(file)-4:] == ".mp3":
            print("ffmpeg2 -i \""+file[:len(file)-4]+".mp3\" -b:a 128k -map_metadata 0 \""+file[:len(file)-4]+"(ver.mini).mp3\"")
            continue